package com.site.service.backend.system;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.site.dto.backend.system.ResourseBizBean;
import com.site.util.base.service.BaseService;
import com.site.util.extremetable.QueryPage;

/**
 * 菜单Service
 * @author Lee 2012-12-24 
 *
 */
public interface MenuService extends BaseService {

	/**
	 * 根据条件获得菜单
	 * @param queryPage
	 * @param resourseBizBean
	 * @return
	 */
	public List<ResourseBizBean> getMenuList(QueryPage queryPage,ResourseBizBean resourseBizBean);
	/**
	 * 根据title获得id
	 * @param title
	 * @return
	 */
	public Integer getIdByTitle(String title);
	/**
	 * 根据用户id获得相应的角色菜单
	 * @param id
	 */
	public List<ResourseBizBean> getUserMenu(Integer id);
	/**
	 * 获得所有菜单
	 */
	public List<ResourseBizBean> getMenu(QueryPage queryPage);
	/**
	 * 根据当前用户查询相应菜单,缓存
	 * @param id
	 * @param request
	 * @return
	 */
	public List<ResourseBizBean> getUserMenu(Integer id,HttpServletRequest request);
	
}
